import { createPinia } from 'pinia';
import { createApp } from 'vue';
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate';

// 引入初始化样式文件
import '@/styles/common.scss';

// 全局指令
import directivesPlugin from '@/directives';
// 全局组件插件
import componentsPlugin from './components';

import App from './App.vue';
import router from './router';

const app = createApp(App);

const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);
app.use(pinia);
app.use(router);
app.use(directivesPlugin);
app.use(componentsPlugin);

app.mount('#app');
